package com.am.meeting.utils;

public class TagsStringUtils {

    /**
     * 将字符串数组组合成逗号分隔的大字符串
     */
    public static String combineArrayToString(String[] array) {
        if (array == null || array.length == 0) {
            return "";
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < array.length; i++) {
            sb.append(array[i]);
            if (i < array.length - 1) {
                sb.append(",");
            }
        }
        return sb.toString();
    }

    /**
     * 逗号分割成数组
     */
    public static String[] SplitTags(String Tags) {
        return Tags.split(",");
    }
}